package com.bean;

import java.sql.Date;
import java.sql.Timestamp;

/**
 * @Description: TODO QQ1667847363
 * @author: xiao kun tai
 * @date:2022/2/8 16:18
 */
public class Person {
    private int id;
    private String name;
    private int age;
    private double money;
    private Date todate;
    private Timestamp ts;

    public Person(int id, String name, int age, double money, Date todate, Timestamp ts) {
        this.id = id;
        this.name = name;
        this.age = age;
        this.money = money;
        this.todate = todate;
        this.ts = ts;
    }

    public Person() {
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public double getMoney() {
        return money;
    }

    public void setMoney(double money) {
        this.money = money;
    }

    public Date getTodate() {
        return todate;
    }

    public void setTodate(Date todate) {
        this.todate = todate;
    }

    public Timestamp getTs() {
        return ts;
    }

    public void setTs(Timestamp ts) {
        this.ts = ts;
    }

    @Override
    public String toString() {
        return id + "\t" +
                name + '\t' +
                age + "\t" +
                money + "\t" +
                todate + "\t" +
                ts;

    }
}
